class CreateDeposits < ActiveRecord::Migration[5.2]
  def change
    create_table :deposits do |t|
      t.integer :user_id
      t.decimal :money, :precision => 10, :scale => 2, :default => 0.0
      t.integer :state, default: 0
      t.string :pay_method
      t.string :trade_no

      t.timestamps
    end
  end
end
